<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery-3.6.0.js" type="text/javascript"></script>
	</head>
	<body>
		<div><span>div1</span></div>
		<input type="text" id="d0" value="张三" />
		<hr />
		<input type="checkbox" value="html" />HTML
		<input type="checkbox" value="css"/>CSS
		<script type="text/javascript">
			//--------查---------------------------------------------------
			let html = $('div').html();
			// console.log(html);
			//--------增(改)---------------------------------------------------
			// $('div').html("<a href='https://www.jd.com'>京东</a>");//innerHTML
			// $('div').text("<a href='https://www.jd.com'>京东</a>");//innerText

			// let val = $('input').val("李四");
			// console.log(val);

			// let cb = $('input:checked');
			// console.log(cb.val());

			$("input[type='checkbox']").val(["html", "css"]);
		</script>
	</body>
</html>
